Skip to content

Conversation

@AlexandrHoroshih
Copy link
Member

@AlexandrHoroshih AlexandrHoroshih commented Jan 29, 2026

Allows to modify any of the Request Config fields in the createJson* methods

    const query = createJsonQuery({
      request: {
        url: 'http://api.salo.com',
        method: 'GET',
        fetch: {
          mode: 'cors',
          cache: 'no-cache',
          referrerPolicy: 'no-referrer',
        },
      },
      response: { contract: unknownContract },
    });

@netlify
Copy link

netlify bot commented Jan 29, 2026

Deploy Preview for farfetched ready!

Name Link
🔨 Latest commit 08d0876
🔍 Latest deploy log https://app.netlify.com/projects/farfetched/deploys/697b37f538e74000087617d7
😎 Deploy Preview https://deploy-preview-574--farfetched.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Member

@igorkamyshev igorkamyshev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Все круто, в телеге оставил пару вопросов

@AlexandrHoroshih AlexandrHoroshih merged commit d5b3011 into master Jan 29, 2026
10 checks passed
@AlexandrHoroshih AlexandrHoroshih deleted the feat-request-configs branch January 29, 2026 10:41
@AlexandrHoroshih AlexandrHoroshih changed the title Introduce request.fetchOptions feature to createJson* methods Introduce request.fetch feature to createJson* methods Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants